package com.jialiang.config;

import com.google.common.collect.Lists;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
@Data
@ConfigurationProperties(prefix = "op.security")
public class SecurityCommonProperties {

  /**
   * 是否开启权限
   */
  private boolean enable;

  /**
   * 不需要权限的链接地址集合
   */
  private List<String> unAuthUrls = Lists.newArrayList();
}
